<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 数组也是对象 字面量创建数组
    let arry = [1,2,3,4,5,6,7];
    console.log(typeof arry)
    console.log(arry)
    console.log(arry[6])
    arry[1]=20;
    console.log(arry)
    console.log(arry.length)

    // 处理数组的方法
    // concat filter indexof findIndex  forEach  join includes  pop push shift unshif slice splice reverse map .....

    let userList = [
        {
            name:"张三",
            age:18
        }
    ]
    // 数组中 元素可以是任意数据类型
    // 构造函数创建数组
    let arry1 = new Array();
    arry1.push(1);
    arry1.push(2)

    console.log(arry1)
</script>
</html>